package com.D5Power.Editor.Event
{
	import com.D5Power.Objects.GameObject;
	
	import flash.events.Event;
	
	/**
	 * 点击游戏对象触发事件
	 */ 
	public class ClickObjectEvent extends Event
	{
		private var _obj:GameObject;
		private var _sceneX:Number;
		private var _sceneY:Number;
		
		public static var CLICK:String = 'click_game_obj';
		
		public function ClickObjectEvent(type:String,obj:GameObject,sceneX:Number=0,sceneY:Number=0,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_obj = obj;
			_sceneX = sceneX;
			_sceneY = sceneY;
		}
		
		/**
		 * 点击对象
		 */ 
		public function get click_target():GameObject
		{
			return _obj;
		}
		
		public function get sceneX():Number
		{
			return _sceneX;
		}
		
		public function get sceneY():Number
		{
			return _sceneY;	
		}
	}
}